package com.bolt.admin.module.log.dto;

import com.bolt.admin.module.log.entity.LogEntity;
import com.bolt.support.query.conditions.domain.MatchType;
import com.bolt.support.spring.jpa.annotation.Filter;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2021/2/23.
 */
@Data
public class LogQueryCriteria {
    /**
     * * 创建日期
     **/
    @ApiModelProperty(notes = "创建日期")
    @JsonFormat(timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @Filter(type= MatchType.BT,owned = LogEntity.class)
    private List<Date> createTime;

    @Filter(blurry = "userName,description,address,requestIp,method,params")
    private String blurry;
    /**
     * 是否成功
     */
    @ApiModelProperty(notes = "是否成功")
    @Filter(type= MatchType.EQ,owned = LogEntity.class)
    private Boolean success;
}

 